'use strict';

import compassLoader from './loader';


/**
 * {
 *   "host": "http://localhost:7011",
 *   "prefix": "lib"
 * }
 *
 * Vue.use(VueCompass, {
 *   host: 'https://vue-discovery.mvvm.io',
 * });
 * vm.$compass([
 *  // full use, load lib, umd.js
 *  {
 *    host: 'https://vue-discovery.mvvm.io',
 *    repo: 'user/repo',
 *    type: 'lib',
 *    version: 'latest',
 *    min: 1,
 *    sig: 0,
 *  },
 *  // simple use, load lib, umd.js
 *  {
 *    repo: 'user/repo',
 *    min: 1,
 *  },
 *  // simple use, load wc, wc.js
 *  {
 *    repo: 'user/repo',
 *    lib: 'wc',
 *  },
 *  // load special version
 *  {
 *    repo: 'user/repo',
 *    version: '0.1.0',
 *  },
 *  // load special schema
 *  {
 *    repo: 'user/repo',
 *    schema: 'export_name'
 *  }
 * ])
 *
 */
export default function (Vue, config = {}) {
  // config.namespace = config.namespace || 'default';
  Vue.prototype.$compass = compassLoader(Vue, config);
}

